package com.bao.bean;

public class Rectangle {
    private double height;
    private double weigh;

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public double getWeigh() {
        return weigh;
    }

    public void setWeigh(double weigh) {
        this.weigh = weigh;
    }

    public double getArea(){
        return height*weigh;
    }
    public double getPerimeter(){
        return height+weigh+height+weigh;
    }
    public void getInfo(){
        System.out.println("长"+height+"宽"+weigh+"面积"+getArea()+"周长"+getPerimeter());
    }
}
